Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Trading Mode] Implement market making #31

Merged
merged 1 commit into from
Feb 11, 2019
Merged

[Trading Mode] Implement market making #31

merged 1 commit into from
Feb 11, 2019

Conversation

Herklos
Copy link
Member

@Herklos Herklos commented Feb 8, 2019

revolves #34

@Herklos Herklos self-assigned this Feb 8, 2019
@Herklos Herklos added TA evaluator About TA evaluator tentacle trading mode About trading mode tentacle labels Feb 8, 2019
@Herklos Herklos changed the title WIP [Trading Mode] Implement market making [Trading Mode] Implement market making Feb 8, 2019
quantity = self._get_quantity_from_risk(trader, current_symbol_holding)
quantity = self.add_dusts_to_quantity_if_necessary(quantity, price,
symbol_market, current_symbol_holding)
limit_price = best_ask_price + (best_ask_price * delta_ask * quantity)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for info, why (in short and long) add a linear correlation to quantity ? If I understand it well, it will make orders further and further from the current price as quantity increase and with enough quantity it will never trade anything because too far in the order book ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you are totally right.

@Herklos Herklos merged commit d626c91 into Drakkar-Software:dev Feb 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TA evaluator About TA evaluator tentacle trading mode About trading mode tentacle
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants